package com.ruibang.glass.produce.entity;

import com.baomidou.mybatisplus.annotation.*;
import com.ruibang.glass.common.domain.file.FileInfo;
import com.ruibang.glass.common.utils.validateannotation.NotBlank;
import com.teaming.cloud.framework2.common.pojo.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * <p>
 * 质量-理化-理化分析报告
 * </p>
 *
 * @author songJinKang
 * @since 2024-03-22
 */

@ApiModel(value = "质量-理化-理化分析报告")
@TableName("g_produce_analysis_report")
@Data
public class AnalysisReport extends BaseEntity {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private String id;
    @NotBlank(message = "工序不可为空")
    @ApiModelProperty(value = "工序：0：成型 1：通道 2：窑炉")
    private String processes;
    @ApiModelProperty(value = "报告名称")
    @NotBlank(message = "报告名称不可为空")
    private String reportName;
    @ApiModelProperty(value = "日期")
    @NotNull(message = "日期不可为空")
    private LocalDate date;
    @ApiModelProperty(value = "检测人")
    private String checkBy;
    @ApiModelProperty(value = "检测人用户ID")
    @NotBlank(message = "检测人不可为空")
    private String checkById;
    @ApiModelProperty(value = "附件")
    @NotBlank(message = "附件不可为空")
    private String file;
    @ApiModelProperty(value = "是否删除：1：是 0：否")
    @TableLogic
    private String isDelete;
    @ApiModelProperty("创建人用户名称")
    private String createUserName;
    @ApiModelProperty("创建人用户ID")
    @NotBlank(message = "创建人不可为空")
    private String createUserId;
    @ApiModelProperty(value = "审批状态")
    private String approveStatus;
    @ApiModelProperty("菜单ID")
    @TableField(exist = false)
    private String menuId;
    @ApiModelProperty("文件信息")
    @TableField(exist = false)
    private FileInfo fileInfo;

    @ApiModelProperty(value = "流程实例结果 1:处理中,2:通过,3:不通过,4:已取消,5:退回/驳回")
    @TableField(exist = false)
    private String status;

    @ApiModelProperty(value = "流程实例Id")
    @TableField(exist = false)
    private String processInstanceId;

    @ApiModelProperty(value = "当前审批人")
    @TableField(exist = false)
    private String approveUserId;

    @ApiModelProperty(value = "当前审批人名称")
    @TableField(exist = false)
    private String approveUserName;

    @ApiModelProperty(value = "节点名称")
    @TableField(exist = false)
    private String nodeName;

}








